package com.sxhalo.fsms.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.sxhalo.fsms.domain.UserPatrolItemRecord;
import com.sxhalo.fsms.domain.UserPatrolItemRecordKey;

public interface UserPatrolItemRecordMapper {
    int deleteByPrimaryKey(UserPatrolItemRecordKey key);

    int insert(UserPatrolItemRecord record);

    int insertSelective(UserPatrolItemRecord record);

    UserPatrolItemRecord selectByPrimaryKey(UserPatrolItemRecordKey key);

    int updateByPrimaryKeySelective(UserPatrolItemRecord record);

    int updateByPrimaryKey(UserPatrolItemRecord record);
    
    int getCount(@Param("where")String where);

    List<UserPatrolItemRecord> findWhereList(@Param("where")String where, @Param("order")String order);

    List<UserPatrolItemRecord> findPagerList(@Param("start")Integer start, @Param("length")Integer length, @Param("where")String where, @Param("order")String order);
    int  insertOrUpdate(UserPatrolItemRecord record);

}